package com.company;

public class MyThread extends Thread{

    @Override
    public void run() {
       // super.run();
        try {
            for (int i = 0; i < 10; i++) {
                Thread.sleep(1000);
                System.out.println(Thread.currentThread().getName());
            }
        } catch (InterruptedException e) {
            e.printStackTrace();
        }


    }
}
